00001 #ifndef COMMUNICATION_H_
00002 #define COMMUNICATION_H_
00003
00004 #include "communication/TCPSocket.h"
00005 #include "communication/UDPSocket.h"
00006
00013 class Communication
00014 {
00015 private:
00016 TCPSocket *tcpSocket;
00017 UDPSocket *udpSocket;
00018 public:
00019 Communication(unsigned char protocol);
00020 bool setServer(unsigned short port, unsigned long address);
00021 bool send(char *sendingMessage);
00022 bool select(int seconds, int microseconds);
00023 bool receive(char *receivingMessage, int receivingMessageSize);
00024 virtual ~Communication();
00025 };
00026
00027 #endif